﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace thinger.EventApp
{
    
    public partial class FrmChild : Form
    {
        //创建委托变量（event事件类型）
        public event ReceiveDelegate EventChildReveice;
        public FrmChild(int num)
        {
            InitializeComponent();
            this.Text += "_" + num;
        }

        private void btnSendMsg_Click(object sender, EventArgs e)
        {
            EventChildReveice.Invoke(this.txtSendMsg.Text);
        }
    }
}
